package demo.standard;

public class WrappedComponentB extends BaseDecorator {

    public WrappedComponentB(IComponent component) {
        super(component);
    }

    @Override
    public void use() {
        this.extraMethod2();
        super.use();
    }

    public void extraMethod2() {
        System.out.println("使用包装类B的额外方法");
    }
}
